//
//  WPBodyTableViewCell.m
//  wobingwoyi
//
//  Created by WGP on 16/9/8.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPBodyTableViewCell.h"

@interface WPBodyTableViewCell ()

@property(nonatomic,strong)UIImageView *lineView;

@end
@implementation WPBodyTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self lineView];
    }
    return self;
}

-(UIImageView *)lineView
{
    if (_lineView == nil)
    {
        _lineView = [[UIImageView alloc] init];
        _lineView.backgroundColor = GLobalLineColor;
        
        [self.contentView addSubview:_lineView];
        
        [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self.contentView);
            make.height.mas_equalTo(0.5);
        }];
    }
    return _lineView;
}

@end
